import { configureStore } from '@reduxjs/toolkit'

import shoppingCartReducer from './modules/shoppingCartStore'
import userReducer from './modules/user'

export default configureStore({
  reducer: {
    // 注册子模块
    shoppingCart: shoppingCartReducer,
    user: userReducer,
  },
})
